<h2><?= $this->translate("User List") ?></h2>
<?php if (count($this->users)>0) { ?>
    <table>
    	<tr>
    		<th>
    			<?= $this->translate("Username") ?>
    		</th>
    		<th>
    			<?= $this->translate("Email") ?>
    		</th>
    	</tr>
    	<?php foreach ($this->users as $user) { ?>
    		<tr>
    			<td>
    				<?= $this->escape($user->username) ?>				
    			</td>
    			<td>
    				<a href="mailto:<?= $user->email ?>" title="<?= $user->email ?>"><?= $this->escape($user->email) ?></a>
    			</td>
    			<td>
    				<a href="<?= $this->url(array("controller"=>"users","action"=>"user-detail","id"=>$user->id)); ?>" title="<?= $this->translate("Detail") ?>"><?= $this->translate("Detail") ?></a>
    			</td>
    			<td>
    				<a href="<?= $this->url(array("controller"=>"users","action"=>"remove-user","id"=>$user->id)); ?>" title="<?= $this->translate("Delete") ?>"><?= $this->translate("Delete") ?></a>
    			</td>						
    		</tr>	
    	<?php } ?>
    </table>
    <?= $this->paginationControl($this->users, 'Sliding', 'paginatorControl.phtml') ?>
<?php } else { ?>
    <?= $this->translate("There are no users registered") ?>
<?php } ?>